package com.sccomsumer.comsumer.Hystrix;

import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class HystrixService {

    public String alive(){
        // 自动处理URL

        RestTemplate restTemplate = new RestTemplate();

        String url = "http://provider/testHystrix";
        String object = restTemplate.getForObject(url, String.class);

        return object;
    }
}
